package com.itheima.fanxing;

import com.itheima.domain.Student;

public class Demo05 {
    public static void main(String[] args) {
        InterImpl1 inter1 = new InterImpl1();
        inter1.show("晗晗");
        InterImpl2<Student> inter2 = new InterImpl2<>();
        inter2.show(new Student("坤坤",26));
    }
}
interface  Inter<E>{
    void show(E e);
}
class InterImpl1 implements Inter<String>{
    @Override
    public void show(String s) {
        System.out.println(s);
    }
}
class InterImpl2<E> implements Inter<E>{

    @Override
    public void show(E t) {
        System.out.println(t);
    }
}